package com.yiwyn.springhotprod.controller;

import com.yiwyn.springhotprod.service.HotService;
import com.yiwyn.springhotprod.service.ProxyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HotController {

    @Autowired
    private HotService hotService;
    @Autowired
    private ProxyService proxyService;


    @GetMapping("/test")
    public Object test() {
        return hotService.test();
    }

    @GetMapping("/proxy")
    public String proxy() {
        return proxyService.proxy();
    }

}
